Skip to content

Add GitHub Actions for npm deploy (release + snapshot)#19

Open
jskupsik wants to merge 3 commits into
developfrom
githubActions
Open

Add GitHub Actions for npm deploy (release + snapshot)#19
jskupsik wants to merge 3 commits into
developfrom
githubActions

Conversation

@jskupsik
Copy link
Copy Markdown
Contributor

@jskupsik jskupsik commented Mar 5, 2026

Summary

  • Add deployRelease and deploySnapshot GitHub Actions workflows for publishing to npm
  • Use shared composite actions from xh/hoist-dev-utils@master (validate-release-version, create-tag-and-github-release, prepare-npm-snapshot-version)
  • Add .nvmrc for consistent Node.js version in CI

Details

deployRelease — manually triggered from master (or a hotfix branch). Validates the version, publishes to npm (with --tag hotfix for hotfix releases), then tags the commit and creates a GitHub release with auto-generated notes.

deploySnapshot — auto-triggered on push to develop (also supports manual dispatch with optional version override). Prepares a timestamped SNAPSHOT version and publishes with the next dist-tag.

Both workflows follow the conventions established in hoist-dev-utils, including comments, concurrency settings, and hotfix support.

Test plan

  • Verify deploySnapshot triggers on push to develop and publishes with next tag
  • Verify deployRelease from master validates version, publishes, tags, and creates GitHub release
  • Verify hotfix release from a non-master/non-develop branch publishes with hotfix tag

🤖 Generated with Claude Code

@jskupsik jskupsik marked this pull request as ready for review March 10, 2026 20:11
Comment thread .github/workflows/deployRelease.yml Outdated
Comment thread .github/workflows/deployRelease.yml Outdated
Comment thread .github/workflows/deployRelease.yml Outdated
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jskupsik jskupsik marked this pull request as draft March 27, 2026 14:48
@jskupsik jskupsik changed the title Added github action deployment scripts Add GitHub Actions for npm deploy (release + snapshot) Mar 30, 2026
@jskupsik jskupsik requested a review from amcclain March 30, 2026 15:13
@jskupsik jskupsik marked this pull request as ready for review March 30, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant